package com.netease.b.a;

import android.text.TextUtils;
import com.netease.a.a.e;
import com.netease.framework.a.k;
import com.netease.framework.a.m;
import com.netease.pris.atom.ac;
import com.netease.pris.atom.b;
import com.netease.pris.atom.u;
import com.netease.pris.c.l;
import java.util.LinkedList;

public class q extends j
{
  private static final int e = 4;
  LinkedList a;
  u b;
  int c;
  int d;

  protected q(u paramu, int paramInt1, int paramInt2)
  {
    super(314);
    this.b = paramu;
    this.c = paramInt1;
    this.d = paramInt2;
  }

  protected q(LinkedList paramLinkedList, int paramInt1, int paramInt2)
  {
    super(313);
    this.a = new LinkedList();
    if (paramLinkedList != null)
      this.a.addAll(paramLinkedList);
    this.c = paramInt1;
    this.d = paramInt2;
  }

  protected static q a(u paramu, int paramInt1, int paramInt2)
  {
    return new q(paramu, paramInt1, paramInt2);
  }

  public static q a(LinkedList paramLinkedList, int paramInt1, int paramInt2)
  {
    return new q(paramLinkedList, paramInt1, paramInt2);
  }

  private void a()
  {
    synchronized (this.a)
    {
      if (this.a.size() > 0)
        a(a((u)this.a.removeFirst(), this.c, this.d));
    }
  }

  private static boolean a(b paramb)
  {
    if ((paramb == b.b) || (paramb == b.c));
    for (int i = 1; ; i = 0)
      return i;
  }

  private ac b(b paramb)
  {
    ac localac = null;
    if (paramb == b.b)
    {
      com.netease.b.b.e.j localj2 = l.b(d.h().a(), d.h().c(), 3);
      if (localj2 != null)
        localac = new ac(localj2);
    }
    while (true)
    {
      return localac;
      if (paramb != b.c)
        continue;
      com.netease.b.b.e.j localj1 = l.b(d.h().a(), d.h().c(), 1);
      if (localj1 == null)
        continue;
      localac = new ac(localj1);
    }
  }

  public void c()
  {
    switch (n())
    {
    default:
    case 313:
    case 314:
    }
    String str1;
    ac localac;
    label190: k localk;
    while (true)
    {
      if (f())
        c(0, null);
      h();
      return;
      synchronized (this.a)
      {
        if (this.a != null)
          for (int i = 4; (this.a.size() > 0) && (i > 0); i--)
            a(a((u)this.a.removeFirst(), this.c, this.d));
      }
      if (this.b == null)
        continue;
      str1 = this.b.b(com.netease.pris.atom.g.b);
      if (TextUtils.isEmpty(str1))
        break;
      if (this.b.v())
        break label309;
      b localb = this.b.be();
      if (!a(localb))
        break label303;
      localac = b(localb);
      if (localac == null)
        continue;
      localk = com.netease.pris.protocol.c.b(str1, localac, d.h().c(), d.h().d());
      localk.g(true);
      localk.d(true);
    }
    label303: label309: for (com.netease.a.a.g localg = e.d(localk.v()); ; localg = null)
    {
      if (localg == null)
        a(g.a(str1, this.b));
      while (true)
      {
        String str2 = this.b.b(com.netease.pris.atom.g.f);
        if (TextUtils.isEmpty(str2))
          break;
        a(g.a(str2, true, false, 0, this.c, this.d));
        break;
        com.netease.pris.c.c.a(d.h().a(), this.b);
      }
      localac = null;
      break label190;
    }
  }

  public void c(int paramInt1, int paramInt2, int paramInt3, Object paramObject)
  {
    switch (n())
    {
    default:
    case 313:
    }
    while (true)
    {
      if (f())
        c(0, null);
      return;
      a();
    }
  }

  public void d(int paramInt1, int paramInt2, int paramInt3, Object paramObject)
  {
    switch (n())
    {
    default:
    case 313:
    }
    while (true)
    {
      if (f())
        c(0, null);
      return;
      a();
    }
  }
}

/* Location:           D:\android\hack\dex2jar-0.0.9.8\classes_dex2jar.jar
 * Qualified Name:     com.netease.b.a.q
 * JD-Core Version:    0.6.0
 */